<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>鼎搜</title>
    <!-- 引入bootstrap -->
    <link rel="stylesheet" href="./assets/css/bootstrap.min.css" />
    <!-- 引入重置样式 -->
    <link rel="stylesheet/less" href="./assets/css/reset.less" />
    <!-- 引入公共样式 -->
    <link rel="stylesheet/less" href="./assets/css/common.less" />
    <!-- 引入首页样式 -->
    <link rel="stylesheet/less" href="./assets/css/register.less" />
    <!-- 引入动画ani -->
    <link rel="stylesheet" href="./assets/css/animate.min.css">
</head>

<body>
    <!-- 头部 -->
    <header id="header" class="header">
        <div class="container">
            <nav class="navbar">
                <div class="top"></div>
                <div class="bottom">
                    <div class="logo">
                        <img src="./assets/images/logo.png" alt="">
                    </div>

                    <div class="listnav">
                        <ul>
                            <li><a href="./index.html"><span>首页</span></a></li>
                            <li><a href="./list.html"><span>关于鼎搜</span></a></li>
                            <li><a href="javascript:void(0)"><span>鼎搜服务</span></a></li>
                            <li><a href="javascript:void(0)"><span>鼎搜动态</span></a></li>
                            <li><a href="./Login.html"><span>登录鼎搜</span></a></li>
                            <li><a href="./register.html"><span>注册账号</span></a></li>
                        </ul>
                    </div>

                    <div class="search">
                        <input type="text" class="searchinfo" placeholder="Search for...">
                        <button class="searchbtn" type="button"><span
                                class="glyphicon glyphicon-search"></span></button>
                    </div>

                    <!-- 移动端切换导航 -->
                    <div class="btn-group">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"
                            aria-haspopup="true" aria-expanded="false">
                            <span class="glyphicon glyphicon-option-horizontal"></span>
                        </button>
                        <ul class="dropdown-menu dropdown-menu-right">
                            <li><a href="./index.html"><span>首页</span></a></li>
                            <li><a href="./list.html"><span>关于鼎搜</span></a></li>
                            <li><a href="javascript:void(0)"><span>鼎搜服务</span></a></li>
                            <li><a href="javascript:void(0)"><span>鼎搜动态</span></a></li>
                            <li><a href="./Login.html"><span>登录鼎搜</span></a></li>
                            <li><a href="./register.html"><span>注册账号</span></a></li>
                            <li role="separator" class="divider"></li>
                            <li>
                                <div class="search">
                                    <input type="text" class="searchinfo" placeholder="Search for...">
                                    <button class="searchbtn" type="button"><span
                                            class="glyphicon glyphicon-search"></span></button>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>


            </nav>
        </div>
    </header>

    <!-- banner -->
    <div class="banner">
        <div class="container">
            <div id="carousel-example-generic" class="carousel slide">
                <!-- Indicators -->
                <ol class="carousel-indicators">
                    <li data-target="#carousel-example-generic" data-slide-to="0" class="point active"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="1" class="point"></li>
                    <li data-target="#carousel-example-generic" data-slide-to="2" class="point"></li>
                </ol>

                <!-- Wrapper for slides -->
                <div class="carousel-inner" role="listbox">
                    <div class="item active">
                        <img src="./assets/images/banner.png" alt="...">
                    </div>
                    <div class="item">
                        <img src="./assets/images/banner.png" alt="...">
                    </div>
                    <div class="item">
                        <img src="./assets/images/banner.png" alt="...">
                    </div>
                </div>
            </div>
        </div>

    </div>

    <!-- 注册 -->
    <div class="register">
        <div class="container">
            <div class="title">
                <p>我要转让</p>
                <p>WO YAO ZHUAN RANG</p>
            </div>

            <div class="reginfo">
                <p>(带 * 号的表示为必填项目，用户名必须大于3位小于20位，密码必须大于3位)</p>

                <form>
                    <div class="username">
                        <div class="inp">
                            <span>用户名：</span>
                            <input type="text" name="username">
                        </div>
                        <div class="prom">
                            <span>*</span>
                            <span>(可以使用中文，但禁止除[@][.]以外的特殊符号)</span>
                        </div>
                    </div>
                    <div class="comname">
                        <div class="inp">
                            <span>公司名称：</span>
                            <input type="text" name="comname">
                        </div>
                        <div class="prom">
                            <span>*</span>
                        </div>
                    </div>
                    <div class="password">
                        <div class="inp">
                            <span>登录密码：</span>
                            <input type="password" name="password">
                        </div>
                        <div class="prom">
                            <span>*</span>
                        </div>
                    </div>
                    <div class="morepass">
                        <div class="inp">
                            <span>确认密码：</span>
                            <input type="password" name="password">
                        </div>
                        <div class="prom">
                            <span>*</span>
                        </div>
                    </div>
                    <div class="email">
                        <div class="inp">
                            <span>电子邮箱：</span>
                            <input type="email" name="email">
                        </div>
                        <div class="prom">
                            <span>*</span>
                            <span>(每个电子邮邮箱只能注册一个帐号)</span>
                        </div>
                    </div>
                    <div class="quesition">
                        <div class="inp">
                            <span>安全问题：</span>
                            <select>
                                <option value="no">没安全提示问题</option>
                                <option value="school">你的学校是</option>
                                <option value="truelove">你的对象是</option>
                                <option value="dad">你爸爸的名字</option>
                            </select>
                        </div>
                        <div class="prom">
                            <span>忘记密码时重设密码用</span>
                        </div>
                    </div>

                    <div class="sex">
                        <span>性别：</span>
                        <label><input type="radio" name="sex">男</label>
                        <label><input type="radio" name="sex">女</label>
                        <label><input type="radio" name="sex">不确定</label>
                    </div>

                    <div class="captcha">
                        <span>验证码:</span>
                        <input type="text" name="captcha">
                        <canvas id="canvas" onclick="dj()"></canvas>
                        <span>看不清？</span>
                        <span>点击图片更换</span>
                    </div>

                    <div class="agree">
                        <span>会员注册协议：</span>
                        <div class="info">
                            <div class="text">
                                <p>
                                    1、在本站注册的会员，必须遵守《互联网电子公告服务管理规定》，不得在本站发表诽谤他人，侵犯他人隐私，侵犯他人知识产权，传播病毒，政治言论，商业讯息等信息。</p>
                                <p>
                                    2、在所有在本站发表的文章，本站都具有最终编辑权，并且保留用于印刷或向第三方发表的权利，如果你的资料不齐全，我们将有权不作任何通知使用你在本站发布的作品。</p>
                                <p>
                                    3、在登记过程中，您将选择注册名和密码。注册名的选择应遵守法律法规及社会公德。您必须对您的密码保密，您将对您注册名和密码下发生的所有活动承担责任。</p>
                            </div>
                            <label>
                                <input type="checkbox" name="agree"><span>我已阅读并完全接受服务协议</span>
                            </label>
                        </div>
                    </div>

                    <button class="btn" onclick="sublim()">注册</button>
                </form>
            </div>
        </div>
    </div>


    <footer class="footer">
        <div class="container">
            <div class="top">
                <div class="leftlist">
                    <ul>
                        <li>
                            <span class="smtitle">简介</span>
                            <span><a href="javascript:void(0)">鼎搜网简介</a></span>
                            <span><a href="javascript:void(0)">鼎搜服务</a></span>
                            <span><a href="javascript:void(0)">会员身份实名认证</a></span>
                        </li>
                        <li>
                            <span class="smtitle">帮助</span>
                            <span><a href="javascript:void(0)">用户注册</a></span>
                            <span><a href="javascript:void(0)">关于鼎搜</a></span>
                            <span><a href="javascript:void(0)">在线咨询</a></span>
                        </li>
                        <li>
                            <span class="smtitle">共赢</span>
                            <span><a href="javascript:void(0)">网站合作</a></span>
                            <span><a href="javascript:void(0)">用户协议</a></span>
                            <span><a href="javascript:void(0)">会员身份实名认证</a></span>
                        </li>
                        <li>
                            <span class="smtitle">导航</span>
                            <span><a href="javascript:void(0)">地图首页</a></span>
                            <span><a href="javascript:void(0)">职能分类</a></span>
                            <span><a href="javascript:void(0)">企业名录</a></span>
                        </li>
                    </ul>
                </div>
                <!-- 右边 -->
                <div class="right">
                    <!-- 右边上面的联系方式 给flex-->
                    <div class="contact">
                        <!-- 电话图标 -->
                        <div class="phone">
                            <img src="./assets/images/phone.png" alt="">
                        </div>
                        <!-- 中间的联系方式 -->
                        <div class="center">
                            <div class="phonenum">
                                <p>全国服务热线</p>
                                <p>440-880-1779</p>
                            </div>
                            <div class="email">
                                <span>邮箱:</span>
                                <span>dinsoo@163.com</span>
                            </div>
                        </div>
                        <!-- 右边的投诉电话和时间 -->
                        <div class="time">
                            <div class="workphone">
                                <span>投诉电话：</span>
                                <span>4408801779</span>
                            </div>
                            <div class="ourtime">
                                <span>周一至周六：</span>
                                <span>9:20-20:00</span>
                            </div>
                            <div class="weibo">
                                <img src="./assets/images/weibo.png" alt="">
                            </div>
                        </div>
                    </div>
                    <!-- 右边下面的二维码和订阅信息 -->
                    <div class="ercode">
                        <div class="code">
                            <img src="./assets/images/code.png" alt="">
                        </div>
                        <span>订阅信息</span>
                    </div>
                </div>
            </div>
            <div class="bottom">
                <span>Copyright ©2015 鼎搜网(www.dinsoo.com) 版权所有</span>
            </div>
        </div>
    </footer>

</body>

</html>
<!-- jquery -->
<script src="./assets/js/jquery.min.js"></script>
<!-- bootstrap -->
<script src="./assets/js/bootstrap.min.js"></script>
<!-- 解析less插件 -->
<script src="./assets/js/less.min.js"></script>
<!-- 懒加载插件 -->
<script src="./assets/js/wow.min.repeat.js"></script>

<script>
    var show_num = [];
    draw(show_num);

    function dj() {
        draw(show_num);
    }

    function sublim() {
        var val = document.getElementById("text").value;
        var num = show_num.join("");
        if (val == '') {
            alert('请输入验证码！');
        } else if (val == num) {
            alert('提交成功！');
            document.getElementById(".input-val").val('');
            draw(show_num);

        } else {
            alert('验证码错误！\n你输入的是:  ' + val + "\n正确的是:  " + num + '\n请重新输入！');
            document.getElementById("text").value = '';
            draw(show_num);
        }



    }

    function draw(show_num) {
        var canvas_width = document.getElementById('canvas').clientWidth;
        var canvas_height = document.getElementById('canvas').clientHeight;
        var canvas = document.getElementById("canvas"); //获取到canvas的对象，演员
        var context = canvas.getContext("2d"); //获取到canvas画图的环境，演员表演的舞台
        canvas.width = canvas_width;
        canvas.height = canvas_height;
        var sCode =
            "A,B,C,E,F,G,H,J,K,L,M,N,P,Q,R,S,T,W,X,Y,Z,1,2,3,4,5,6,7,8,9,0,q,w,e,r,t,y,u,i,o,p,a,s,d,f,g,h,j,k,l,z,x,c,v,b,n,m";
        var aCode = sCode.split(",");
        var aLength = aCode.length; //获取到数组的长度

        for (var i = 0; i <= 3; i++) {
            var j = Math.floor(Math.random() * aLength); //获取到随机的索引值
            var deg = Math.random() * 30 * Math.PI / 180; //产生0~30之间的随机弧度
            var txt = aCode[j]; //得到随机的一个内容
            show_num[i] = txt;
            var x = 10 + i * 20; //文字在canvas上的x坐标
            var y = 20 + Math.random() * 8; //文字在canvas上的y坐标
            context.font = "bold 23px 微软雅黑";

            context.translate(x, y);
            context.rotate(deg);

            context.fillStyle = randomColor();
            context.fillText(txt, 0, 0);

            context.rotate(-deg);
            context.translate(-x, -y);
        }
        for (var i = 0; i <= 5; i++) { //验证码上显示线条
            context.strokeStyle = randomColor();
            context.beginPath();
            context.moveTo(Math.random() * canvas_width, Math.random() * canvas_height);
            context.lineTo(Math.random() * canvas_width, Math.random() * canvas_height);
            context.stroke();
        }
        for (var i = 0; i <= 30; i++) { //验证码上显示小点
            context.strokeStyle = randomColor();
            context.beginPath();
            var x = Math.random() * canvas_width;
            var y = Math.random() * canvas_height;
            context.moveTo(x, y);
            context.lineTo(x + 1, y + 1);
            context.stroke();
        }
    }

    function randomColor() { //得到随机的颜色值
        var r = Math.floor(Math.random() * 256);
        var g = Math.floor(Math.random() * 256);
        var b = Math.floor(Math.random() * 256);
        return "rgb(" + r + "," + g + "," + b + ")";
    }
</script>